<include file="application/admin/view/public/left.html"/>
    <!--/sidebar-->
    <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="{:U('Index/index')}">首页</a><span class="crumb-step">&gt;</span><span class="crumb-name">会员管理</span></div>
        </div>
        <div class="search-wrap">
            <div class="search-content">
                <form action="{:U('Member/index')}" method="post">
                    <table class="search-tab">
                        <tr>
                            
                            <tr>   
                                    <th><i class="require-red">*</i>开始时间：</th>
                                    <td>
                            
                                    <div class="row"><div class="col-md-6">
                                                    <i class="fa fa-calendar"></i></span>
                                                    <input type="text" name="add_time" class="ui_timepicker" id="aaaaa1" placeholder="选择日期时间" value="{$list['add_time']|date='Y-m-d H:i:s',###}"  />
                                                </div></div></td>
                                  <script type="text/javascript">
                                    $(function () {
                                        var date1 = new Date();
                                        var dat = date1.toLocaleDateString()+" "+date1.getHours()+":"+date1.getMinutes()+":"+date1.getSeconds();
                                        $("#aaaaa2").val(dat);
                                        $("#aaaaa1").datetimepicker({
                                            //showOn: "button",
                                            //buttonImage: "./css/images/icon_calendar.gif",
                                            //buttonImageOnly: true, 
                                            showSecond: true,
                                            timeFormat: 'hh:mm:ss',
                                            stepHour: 1,
                                            stepMinute: 1,
                                            inputMask: true,
                                            stepSecond: 1,
                                           
                                        })
                                            $("#aaaaa2").datetimepicker({
                                            //showOn: "button",
                                            //buttonImage: "./css/images/icon_calendar.gif",
                                            //buttonImageOnly: true,
                                            showSecond: true,
                                            timeFormat: 'hh:mm:ss',
                                            stepHour: 1,
                                            stepMinute: 1,
                                            stepSecond: 1
                                        })
                                   
                                    })
                                </script>
                                    <th><i class="require-red">*</i>截止时间：</th>
                                    <td><div class="row"><div class="col-md-6">
                                                    <i class="fa fa-calendar"></i></span>
                                                    <input type="text" name="end_time" class="ui_timepicker" id="aaaaa2" placeholder="选择日期时间" value="{$list.end_time|date='Y-m-d H:i:s',###}" / >
                                                </div></div></td>
                                    <td><input class="btn btn-primary btn2" name="sub" value="下载表格" type="button" onclick="download()"></td>
                                </tr>



                        </tr>
                    </table>
                </form>
				
            </div>
        </div>
        <div class="result-wrap">

            <div class="result-title">
               
            </div>
            <div class="result-content">
                <table class="result-tab" width="100%">
                    <tr>
                        <th>ID</th>
                        <th>用户名</th>
                        <th>会员姓名</th>
                        <!-- <th>等级</th> -->
                        <th>手机号</th>
                        <th>权益值</th>
                        <th>提现金额</th>
						<th>提现时间</th>
                        <th>状态</th>
                        <th>操作</th>
                    </tr>
                    <volist name='list' id='vo'>
                        <tr>
                            <td>{$vo['id']}</td>
                            <td>{$vo['name']}</td>
                            <td>{$vo['full_name']}</td>
                            <!-- <td>
                                <if condition="$vo.level eq 0">
                                    <span class="pending">
                                        会员
                                    </span>
                                </if>
                                <if condition="$vo.level eq 1">
                                    <span class="pending" style="color:#FF0088;">
                                        粉客
                                    </span>
                                </if>
                                <if condition="$vo.level eq 2">
                                    <span class="pending" style="color:#FF0000;">
                                        拓客
                                    </span>
                                </if>
                                <if condition="$vo.level eq 3">
                                    <span class="pending" style="color:#FF5511;">
                                        创客
                                    </span>
                                </if>
                                <if condition="$vo.level eq 4">
                                    <span class="pending" style="color:#FFFF00;">
                                        黄金
                                    </span>
                                </if>
                                <if condition="$vo.level eq 5">
                                    <span class="pending" style="color:#66FFFF;">
                                        铂金
                                    </span>
                                </if>
                                <if condition="$vo.level eq 6">
                                    <span class="pending" style="color:#00AA00;">
                                        翡翠
                                    </span>
                                </if>
                                <if condition="$vo.level eq 7">
                                    <span class="pending" style="color:#00DDDD;">
                                        钻石
                                    </span>
                                </if>
                                <if condition="$vo.level eq 8">
                                    <span class="pending" style="color:#FF00FF;">
                                        至尊
                                    </span>
                                </if>
                                

                            </td> -->
                            <td>{$vo['phone']}</td>
                            <td>{$vo['yizun']}</td>
                            <td style="color:#F00; font-weight:bold;">{$vo['num']}</td>
                           
							<td>{$vo['add_time']|date='Y-m-d H:i:s',###}</td>
                            <td><if condition="$vo['status'] eq 0">
                                <span style="color:#F00; font-weight:bold;">
                                    等待审核
                                </span>
									
								</if>
								<if condition="$vo['status'] eq 1">
                                    <span >
                                        已处理
                                    </span>
                                    
								</if>
								</td>
                            <td>
                                <a class="link-del" href="{:U('Member/tongGuo',array('id'=>$vo['id']))}">处理通过</a>
                                <br>
                                
                            </td>
                        </tr>
                    </volist>

                </table>
                <div class="list-page"> <ul>{$page}</ul></div>
            </div>

        </div>
    </div>
    <!--/main-->
</div>
</body>
</html>
<script>
$(".sub-menu").eq(1).show();
$(".sub-menu").eq(1).children("li").eq(3).addClass("on");
</script>
<script>
function download(){
    var add_time=$('#aaaaa1').val();
    var end_time=$('#aaaaa2').val();
    var url="{:U('Member/derivedExcel')}";
    window.location.href=url+"?add_time="+add_time+"&&end_time="+end_time;
}
</script>